﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<t_205_verk_hopur_12.Models.ChannelVideoViewModel>" %>
    <% using (Html.BeginForm()) {%>
    <%= Html.ValidationSummary(true) %>

        <div class="editor-label">
            <%= Html.LabelFor(model => model.SingleVideo.Title) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.SingleVideo.Title)%>
            <%= Html.ValidationMessageFor(model => model.SingleVideo.Title)%>
        </div>
        <div class="clear"></div>

        <div class="editor-label">
            <%= Html.LabelFor(model => model.SingleVideo.Description)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.SingleVideo.Description)%>
            <%= Html.ValidationMessageFor(model => model.SingleVideo.Description)%>
        </div>
        <div class="clear"></div>
            
        <div class="editor-label">
            <%= Html.LabelFor(model => model.SingleVideo.Embed)%>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.SingleVideo.Embed)%>
            <%= Html.ValidationMessageFor(model => model.SingleVideo.Embed)%>
        </div>
        <div class="clear"></div>
        
        <p>
        <input type="submit" value="Skrá" />
        </p>
        <% } %>
<p>&nbsp;</p>
<div>
<%= Html.ActionLink("Til baka", "Videos", new { id = Model.Channel.ID })%>
</div>
